package cn.breeze.basic.service;

import cn.breeze.basic.utils.AjaxResult;
import cn.breeze.basic.vo.LoginPhoneVo;
import cn.breeze.basic.vo.LoginVo;
import cn.breeze.basic.vo.WechatVo;

import java.util.Map;

public interface ILoginService {

    /**
    * @Title: account
    * @Description: 账号登录
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/7 12:57
    * @Parameters: [loginVo]
    * @Return java.util.Map<java.lang.String,java.lang.Object>
    */
    Map<String, Object> account(LoginVo loginVo);

    /**
    * @Title: logout
    * @Description: 退出登录
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/8 13:02
    * @Parameters: [token]
    * @Return void
    */
    void logout(String token);

    /**
    * @Title: phone
    * @Description: 手机号登录
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/8 15:48
    * @Parameters: [loginPhoneVo]
    * @Return java.util.Map<java.lang.String,java.lang.Object>
    */
    Map<String, Object> phone(LoginPhoneVo loginPhoneVo);

    /**
    * @Title: wechat
    * @Description: 微信登录
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/9 19:12
    * @Parameters: [wechatVo]
    * @Return java.util.Map<java.lang.String,java.lang.Object>
    */
    AjaxResult wechat(WechatVo wechatVo);

    // 微信登录绑定用户
    Map<String, Object> binder(WechatVo wechatVo);
}
